package sdk.pay.utils.pattern;

import android.text.TextUtils;

import java.util.regex.Pattern;

/**
 * Created by Administrator on 2017/8/11.
 */

public class CodePattern {
    private static final Pattern mPattern = Pattern.compile("[0-9]{8,10}");

    public static Pattern getmPattern() {
        return mPattern;
    }

    public static boolean matcher(CharSequence input) {
        if (TextUtils.isEmpty(input)) {
            return false;
        }
        return mPattern.matcher(input).matches();
    }
}
